package com.qf.j2112.service;

import com.qf.j2112.po.SysUser;
import com.qf.j2112.utils.PageUtil;

import java.util.List;

public interface SysUserService {
    //根据登录名单查，用与登录
    SysUser findUserByUname(String uname);

    //根据用户id单查，用于后台管理
    SysUser findUserByUid(int uid);

    List<SysUser> findAllSysUser(PageUtil pageUtil);

    SysUser addSysUser(SysUser user);

    boolean updateSysUser(SysUser user);

    boolean deleteSysUser(int uid);

    int countUser();

}
